<template>
  <div class="requirements card">
    <h2 class="section-title">装备和注意事项</h2>
    
    <div class="info-section">
      <h3>装备要求</h3>
      <div class="equipment-list">
        <p v-if="!equipmentRequired">无特殊装备要求</p>
        <p v-else>{{ equipmentRequired }}</p>
      </div>
    </div>

    <div class="info-section">
      <h3>注意事项</h3>
      <div class="requirements-list">
        <p v-if="!requirements">无特殊注意事项</p>
        <p v-else>{{ requirements }}</p>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
defineProps({
  equipmentRequired: {
    type: String,
    default: ''
  },
  requirements: {
    type: String,
    default: ''
  }
});
</script>

<style scoped lang="scss">
.requirements {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;

  .section-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
  }

  .info-section {
    margin-bottom: 16px;

    &:last-child {
      margin-bottom: 0;
    }

    h3 {
      font-size: 16px;
      font-weight: bold;
      margin: 0 0 8px;
      color: #333;
    }

    p {
      margin: 4px 0;
      color: #666;
      line-height: 1.5;
      white-space: pre-wrap;
    }
  }

  .equipment-list,
  .requirements-list {
    background: #f8f8f8;
    border-radius: 4px;
    padding: 12px;
  }
}
</style>
